package com.cyan.learn.pattern.strategy;

public class StrategyTest {
    public static void main(String[] args) {
        StrategyContext context = new StrategyContext(new StrategyB());
        context.show();
        
        // 修改为A策略
        context.setStrategy(new StrategyA());
        context.show();
    }
}
